package com.wanpinghui.wphlibrary.model.user.bean;

import com.yunshl.yunshllibrary.utils.TimeUtil;

/***
 * 功能描述:优惠套餐数据模型
 * 作者:qiujialiu
 * 时间:2018/1/4
 ***/

public class DiscountPackBean {
    private float discount; // 几折优惠
    private String deadline;// 截止日期

    public float getDiscount() {
        return discount;
    }

    public String getDeadline() {
        return deadline;
    }

    public boolean isOverTime() {
        long endTime = TimeUtil.parseTime(deadline.replaceAll("-","."),"yyyy.MM.dd");
        if (endTime < System.currentTimeMillis()) {
            return true;
        }
        return false;
    }
}
